package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author nzmxfan
 * @create 2021-09-03-16:44
 */
public interface SupplierDao {
    List<Supplier> list(@Param("page") Integer page, @Param("rows") Integer rows, @Param("supplierName") String supplierName);

    int total(@Param("supplierName") String supplierName);

    boolean update(@Param("supplier") Supplier supplier);

    boolean save(@Param("supplier") Supplier supplier);

    void deleteById(@Param("id") Integer id);
}
